package net.cyue.homework.student.management.dto;

import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotNull;
import jakarta.validation.constraints.Positive;

public class ClassUpdateDTO {
    @NotNull
    @Positive
    private Integer id;
    @NotNull
    @Positive
    private Integer majorId;
    @NotBlank
    private String name;

    public ClassUpdateDTO() {}
    public ClassUpdateDTO(Integer id, Integer majorId, String name) {
        this.id = id;
        this.majorId = majorId;
        this.name = name;
    }

    public Integer getId() {
        return this.id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getMajorId() {
        return this.majorId;
    }

    public void setMajorId(Integer majorId) {
        this.majorId = majorId;
    }

    public String getName() {
        return this.name;
    }

    public void setName(String name) {
        this.name = name;
    }
}

